<!--{template common/header}-->
<div id="pt" class="bm cl">
	<div class="y">
		<!--{subtemplate dzapp_zhibo:shopcp_pt}-->
	</div>	
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
		<a href="plugin.php?id=dzapp_shop">{lang dzapp_shop:shop}</a> <em>&rsaquo;</em>
		<a href="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]">{lang dzapp_shop:shopcp}</a> <em>&rsaquo;</em>
		{lang dzapp_zhibo:live}
	</div>
</div>
<div id="ct" class="ct2_a wp cl">
	<div class="mn">
		<div class="bm bw0">
			<!--{if $op == 'list'}-->
			<ul class="tb mbm cl">
				<li class="a"><a href="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]&ac=live">{lang dzapp_zhibo:live}</a></li>
				<li class="o y"><a href="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]&ac=live&op=post">{lang dzapp_zhibo:live_add}</a></li>
			</ul>
			<table cellspacing="0" cellpadding="0" class="dt mtm">
				<tr class="th">
					<th>{lang dzapp_zhibo:machine}</th>
					<th width="60">{lang dzapp_shop:operation}</th>
				</tr>
				<!--{loop $list $value}-->
				<tr>
					<td>$value[machine]</td>
					<td>
						<a href="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]&ac=live&op=post&live_id=$value[live_id]">{lang dzapp_shop:edit}</a>
						<a href="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]&ac=live&op=delete&live_id=$value[live_id]&formhash={FORMHASH}" onclick="showDialog('{lang dzapp_zhibo:delete_confirm}', 'confirm', '', 'window.location=\''+this.href+'\'');return false;">{lang dzapp_shop:delete}</a>
					</td>
				</tr>
				<!--{/loop}-->
			</table>
			<!--{if $multi}--><div class="mtm cl">$multi</div><!--{/if}-->
			<!--{else}-->
			<ul class="tb mbm cl">
				<li class="a"><!--{if $live[live_id]}--><a href="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]&ac=live&op=post&live_id=$_GET[live_id]">{lang dzapp_zhibo:live_edit}</a><!--{else}--><a href="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]&ac=live&op=post">{lang dzapp_zhibo:live_add}</a><!--{/if}--></li>
			</ul>
			<form name="liveform" method="post" autocomplete="off" action="plugin.php?id=dzapp_shop&mod=shopcp&shop_id=$shop[shop_id]&ac=live" onsubmit="return validate(this)">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="live_id" value="$live_id" />
				<input type="hidden" name="livesubmit" value="true" />
				<table cellspacing="0" cellpadding="0" class="tfm">
					
					<tr>
						<th></th>
						<td><button type="submit" class="pn pnp"><strong>{lang submit}</strong></button></td>
					</tr>
				</table>
			</form>
			<script type="text/javascript">
			function validate(theform) {
				if(theform.machine.value == '') {
					alert('{lang dzapp_zhibo:machine_validate}');theform.machine.focus();return false;
				}
			}
			</script>
			<!--{/if}-->
		</div>
	</div>
	<div class="appl">
		<!--{subtemplate dzapp_shop:shopcp_nav}-->
	</div>
</div>
<!--{template common/footer}-->